package com.diaohw.module.websocket.properties;

import lombok.Data;

@Data
public class MsgProcessProperties {

    /**
     * rabbitMQ 配置
     */
    private RabbitMsgProcessProperties rabbit;
    /**
     * http 配置
     */
    private HttpMsgProcessProperties http;


    public boolean enableHttp() {
        return http != null && http.isEnable();
    }

    public boolean enableRabbit() {
        return rabbit != null && rabbit.isEnable();
    }
}
